sysroot: Add error prefixing to deployment parsing
authorColin Walters <walters@verbum.org>
Wed, 17 Oct 2018 16:10:40 +0000 (16:10 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 17 Oct 2018 16:17:18 +0000 (16:17 +0000)
I think this is where the bare `readlinkat` came from in
https://github.com/ostreedev/ostree/issues/1459

`Error setting up sysroot: readlinkat: No such file or directory`

Closes: #1757
Approved by: jlebon

src/libostree/ostree-sysroot.c

index 8a916289f1f783530b09dc87a59ea60945cec9c5..8485edece54cdf4fc789566768d081470507a910 100644 (file)
@@ -612,6 +612,10 @@ parse_deployment (OstreeSysroot       *self,
                        error))
     return FALSE;
 
+  g_autofree char *errprefix =
+    g_strdup_printf ("Parsing deployment %i in stateroot '%s'", treebootserial, osname);
+  GLNX_AUTO_PREFIX_ERROR(errprefix, error);
+
   const char *relative_boot_link = boot_link;
   if (*relative_boot_link == '/')
     relative_boot_link++;